<!DOCTYPE html>
<html>

<head>
  <title>
    <%= title %>
  </title>
  <link rel='stylesheet' href='/stylesheets/style.css' />
</head>

<body>
  <%- include("head",{name:"首页"}) %>

    <% if(username){ %>
      <div>
        <h2>
          欢迎您<%- username %>
            昵称<%-nickname%>
              手机号<%-phone%>
        </h2>
        <button onclick="location.href='/good'">商品列表</button>
        <button onclick="location.href='/logout'">注销</button>
      </div>
      <% }else{ %>
        <div>
          <h3>你暂未登录,请登录</h3>
          <button onclick="location.href='/login'">登录</button>
          <button onclick="location.href='/register' ">注册</button>
        </div>
        <% } %>

          <%- include("foot") %>
</body>

</html>